package git.soulbgm.pojo;

import lombok.Data;

import java.util.List;

/**
 * @author SoulBGM
 * @version 1.0
 * @date 2019/7/4 15:39
 */
@Data
public class Weather {


    /**
     * reason : 查询成功!
     * result : {"city":"北京","realtime":{"temperature":"37","humidity":"22","info":"多云","wid":"01","direct":"南风","power":"4级","aqi":"121"},"future":[{"date":"2019-07-04","temperature":"25/38℃","weather":"晴转多云","wid":{"day":"00","night":"01"},"direct":"南风"},{"date":"2019-07-05","temperature":"23/34℃","weather":"雷阵雨","wid":{"day":"04","night":"04"},"direct":"东风转北风"},{"date":"2019-07-06","temperature":"20/30℃","weather":"雷阵雨","wid":{"day":"04","night":"04"},"direct":"东北风转东风"},{"date":"2019-07-07","temperature":"21/30℃","weather":"阴","wid":{"day":"02","night":"02"},"direct":"东北风转北风"},{"date":"2019-07-08","temperature":"22/32℃","weather":"多云","wid":{"day":"01","night":"01"},"direct":"北风"}]}
     * error_code : 0
     */

    private String reason;
    private ResultBean result;
    private int error_code;

    @Data
    public static class ResultBean {
        /**
         * city : 北京
         * realtime : {"temperature":"37","humidity":"22","info":"多云","wid":"01","direct":"南风","power":"4级","aqi":"121"}
         * future : [{"date":"2019-07-04","temperature":"25/38℃","weather":"晴转多云","wid":{"day":"00","night":"01"},"direct":"南风"},{"date":"2019-07-05","temperature":"23/34℃","weather":"雷阵雨","wid":{"day":"04","night":"04"},"direct":"东风转北风"},{"date":"2019-07-06","temperature":"20/30℃","weather":"雷阵雨","wid":{"day":"04","night":"04"},"direct":"东北风转东风"},{"date":"2019-07-07","temperature":"21/30℃","weather":"阴","wid":{"day":"02","night":"02"},"direct":"东北风转北风"},{"date":"2019-07-08","temperature":"22/32℃","weather":"多云","wid":{"day":"01","night":"01"},"direct":"北风"}]
         */

        private String city;
        private RealtimeBean realtime;
        private List<FutureBean> future;

        @Data
        public static class RealtimeBean {
            /**
             * temperature : 37
             * humidity : 22
             * info : 多云
             * wid : 01
             * direct : 南风
             * power : 4级
             * aqi : 121
             */

            private String temperature;
            private String humidity;
            private String info;
            private String wid;
            private String direct;
            private String power;
            private String aqi;

        }

        @Data
        public static class FutureBean {
            /**
             * date : 2019-07-04
             * temperature : 25/38℃
             * weather : 晴转多云
             * wid : {"day":"00","night":"01"}
             * direct : 南风
             */

            private String date;
            private String temperature;
            private String weather;
            private WidBean wid;
            private String direct;

            @Data
            public static class WidBean {
                /**
                 * day : 00
                 * night : 01
                 */

                private String day;
                private String night;

            }
        }
    }

}
